var userCenterModule = (function () {
    return {
    	
        /**
         * 获取个人资料
         * @param {Object} param
         * @param {Object} callBack
         */
        queryUserInfo: function (param, callBack) {
            utilModule.get({
                url: "userCenter/queryDetail",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        /**
         * 获取授权信息
         * @param {Object} param
         * @param {Object} callBack
         */
        getJsApiSign: function (param, callBack) {
            utilModule.get({
                url: "homepage/getJsApiSign",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
		
		/**
		 * 添加好友
		 * @param {Object} param
		 * @param {Object} callBack
		 */
        addDoctorFirend: function (param, callBack) {
            utilModule.post({
                url: "doctor/addDoctorFriends",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        /**
		 * 获取我的医生列表
		 * @param {Object} param
		 * @param {Object} callBack
		 */
		queryMyDoctorList: function(param, callBack) {
			utilModule.post({
				url: "userCenter/myDoctorList",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		
	    //获得我得服务列表
		queryMyService:function(param, callBack){
			utilModule.get({
				url: "userCenter/myServiceList",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		
		//我的咨询详情
		myServiceInfor:function(param, callBack){
			utilModule.get({
				url: "userCenter/myServiceInfo",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		
		//我关注的医生
		myAdavate:function(param, callBack){
			utilModule.post({
				url: "doctor/followDoctorList",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
					
				}
			});
		},
		/**
		 * 我的评价
		 * @param {Object} param
		 * @param {Object} callBack
		 */
		myEvaluate: function(param, callBack) {
			utilModule.get({
				url: "doctor/getMyEvaluate",
				data: param,
				needJson: true,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		}
		
 	}
})();